/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jonasLab.financistoweb.control;

import java.util.ResourceBundle;

/**
 *
 * @author jonas
 */
public abstract class MessagesControl {
    
    private static ResourceBundle messages;
    
    public MessagesControl() {
        messages = ResourceBundle.getBundle("br/jonasLab/financistoweb/bundle/messages");
    }
    
    protected String getMessage(String typeMessage) {
        return messages.getString("erro_" + typeMessage);
    }
    
    public abstract void addMessage(String message);

}
